class RMWeap_SpaceTimeGun extends UTWeapon;


/** Holds the name of the socket to attach a muzzle flash too */
var name					MuzzleFlashSocket;

/** Holds the status of airborne state */
var name					bAirborne;

/** Normal Fire and Alt Fire Templates */
var ParticleSystem			MuzzleFlashPSCTemplate;

/** dynamic light class */
var class<UDKExplosionLight> MuzzleFlashLightClass;

/** How long the Muzzle Flash should be there */
var() float					MuzzleFlashDuration;


simulated function TimeWeaponEquipping()
{
    AttachWeaponTo( Instigator.Mesh,'WeaponPoint' );
    super.TimeWeaponEquipping();
}

simulated function AttachWeaponTo( SkeletalMeshComponent MeshCpnt, optional Name SocketName )
{
    MeshCpnt.AttachComponentToSocket(Mesh,SocketName);
}


defaultproperties
{
	ProjectileClass=Class'RedMatter.RMProj_Blob'
	FireInterval(0)=+0.5 //Blob firing interval
	FireInterval(1)=+0.1 //Blob explosion interval
	WeaponFireTypes(0)=EWFT_Projectile
	WeaponFireTypes(1)=EWFT_Custom
	
	WeaponProjectiles(0)=class'RedMatter.RMProj_Blob'
	
	ShotCost(0)=1
	ShotCost(1)=0

	ShouldFireOnRelease(0)=0
	ShouldFireOnRelease(1)=0
	InventoryGroup=2
	GroupWeight=0.5
	AimError=600

	AmmoCount=10000
	LockerAmmoCount=50
	MaxAmmoCount=10000

	IconX=335
	IconY=81
	IconWidth=43
	IconHeight=39
	
	WeaponColor=(R=255,G=255,B=255,A=255)
	
	Begin Object Name=FirstPersonMesh
		SkeletalMesh=SkeletalMesh'WP_FlakCannon.Mesh.SK_WP_FlakCannon_1P'
		PhysicsAsset=None
		FOV=70
		AnimTreeTemplate=AnimTree'WP_FlakCannon.Anims.AT_FlakCannon'
		AnimSets(0)=AnimSet'WP_FlakCannon.Anims.K_WP_FlakCannon_1P_Base'
	End Object
	AttachmentClass=class'UTGame.UTAttachment_FlakCannon'

	ArmsAnimSet=AnimSet'WP_FlakCannon.Anims.K_WP_FlakCannon_1P_Arms'

	Begin Object Name=PickupMesh
		SkeletalMesh=SkeletalMesh'WP_FlakCannon.Mesh.SK_WP_FlakCannon_3P_Mid'
	End Object
	
	MuzzleFlashSocket=class'MuzzleFlashSocket'
	MuzzleFlashPSCTemplate=WP_FlakCannon.Effects.P_WP_FlakCannon_Muzzle_Flash
	MuzzleFlashDuration=0.33
	MuzzleFlashLightClass=class'UTGame.UTRocketMuzzleFlashLight'
}